package com.snailct.bpp.db;

import com.snailct.bpp.db.MyBatisPojo;

import com.snailct.bpp.db.template.CUDTemplate;
import org.apache.ibatis.annotations.*;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created by huangxa on 2016/7/20.
 */
public interface BaseMapper <T extends MyBatisPojo> {
    @InsertProvider(type = CUDTemplate.class,method = "insert")
    public void insert(T obj);
    @SelectProvider(type = CUDTemplate.class,method="select")
    public List<T> queryByQry();
    @DeleteProvider(type = CUDTemplate.class,method = "delete")
    public void delete(T obj);
    @SelectProvider(type = CUDTemplate.class,method="getById")
    public T getById(T obj);
    @UpdateProvider(type = CUDTemplate.class,method = "update")
    public void update(T obj);


}
